<template>
  <div class="app">
    <ol class="left">
      <li v-for="(item, index) in $router.options.routes" :key="index">
        <router-link :to="item.path">{{ item.name }}</router-link>
      </li>
    </ol>

    <div class="right">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
// import xxx from './views/djwzbs.vue'
export default {
  name: 'App',
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {
    // console.log(this.$router.options.routes)
  },
  mounted() {},
  methods: {},
}
</script>

<style lang="less" scoped>
.app {
  display: flex;
  .left {
    width: 300px;
  }
  .right {
    flex: 1;
  }
}
</style>
